package org.jmh.gift.mapper;

import org.apache.ibatis.annotations.Param;
import org.jmh.gift.domain.GoodsSku;
import com.baomidou.mybatisplus.mapper.BaseMapper;

/**
 * <p>
 * sku表 Mapper 接口
 * </p>
 *
 * @author lingfeng
 * @since 2024-07-30
 */
public interface GoodsSkuMapper extends BaseMapper<GoodsSku> {

    void lockStock(@Param("skuId") Long skuId, @Param("num") Integer num);

    void subLockStock(@Param("skuId") Long skuId,@Param("num") Integer num);
}
